FROM openjdk:11.0.15-jdk
#FROM adoptopenjdk/openjdk8

EXPOSE 8088
MAINTAINER lizhxuan@cmii.chinamobile.com
ENV LANG C.UTF-8
VOLUME /tmp

ADD sjw_department_control-1.0.0.jar  sjw_department_control.jar

#RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
#&& echo "Asia/Shanghai" > /etc/timezone \
#&& mkdir -p /opt/app/logs
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone


# copy application JAR (with libraries inside)
#COPY electronic-card-data-manage-collector*.jar /opt/app/app.jar
#WORKDIR /opt/app/
#
#  # 运行jar包
#CMD java -jar -Dspring.profiles.active=release /opt/app/app.jar
ENTRYPOINT ["java", "-Xmx2g", "-Xms2g", "-XX:MetaspaceSize=256m", "-XX:MaxMetaspaceSize=512m", "-Djava.security.egd=file:/dev/./urandom", "-jar", "-Dfastjson.parser.safeMode=true","/sjw_department_control.jar","--spring.profiles.active=release"]

